import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * cuser模块-用户信息
 */
@Entity('cuser_info')
export class CuserInfoEntity extends BaseEntity {
  @Index({ unique: true })
  @Column({ comment: 'UUID', length: 36 })
  uuid: string;

  @Index()
  @Column({ comment: '应用ID', length: 50 })
  appId: string;

  @Column({ comment: '推广ID', length: 50 })
  promotionId: string;

  @Column({ comment: '状态 0-禁用 1-启用', default: 1 })
  status: number;

  @Column({ comment: '语言', length: 50 })
  language: string;

  @Column({ comment: '来源', length: 50 })
  from: string;

  @Column({ comment: '创建时间', type: 'datetime' })
  createTime: Date;

  @Column({ comment: '更新时间', type: 'datetime' })
  updateTime: Date;
}
